﻿<%@ Page Title="配送企业分类汇总统计" Language="C#" MasterPageFile="~/Master/MasterPage_New.master" AutoEventWireup="true" CodeBehind="TradingStatisticsCompanyPSBy23J.aspx.cs" Inherits="HZ.Supervise.Web.Company.TradingStatisticsCompanyPSBy23J" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="../Master/UserSiteMapPath.ascx" TagName="UserSiteMapPath" TagPrefix="uc2" %>
<%@ Register Src="../Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc3" %>
<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
	<%-- <script type="text/javascript">
       _NavBar_pageID = "配送企业汇总统计"; /* disable the current page from the menu */
    </script>--%>

	<script language="javascript" type="text/javascript">
		function txtClear() {
			var txtBox = document.getElementsByTagName("input")
			for (var i = 0; i < txtBox.length; i++) {
				if (txtBox[i].type == "text") {
					txtBox[i].value = "";
				}
			}
			document.getElementById("ctl00_ContentPlaceHolder1_ddlQualityLevel").selectedIndex = 0;
			document.getElementById("ctl00_ContentPlaceHolder1_ddlInsuranceType").selectedIndex = 0;
			document.getElementById("ctl00_ContentPlaceHolder1_ddlSortName").selectedIndex = 0;
			document.getElementById("ctl00_ContentPlaceHolder1_ddlLevels").selectedIndex = 0;
		}
	</script>

	<script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>

	<script type="text/javascript" src="../Scripts/PCASClass.js"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
	<div id="tabnav">
		<ul>
		    
		     <li><a href="TradingStatisticsCompanyPS.aspx">全部医疗机构分类汇总统计</a></li>
            <li class="active"><a href="TradingStatisticsCompanyPSBy23J.aspx">二、三级医疗机构分类汇总统计</a></li>
            <li><a href="TradingStatisticsCompanyPSByJC.aspx">基层医疗机构分类汇总统计</a></li>
            <li><a href="TradingStatisticsCompanyPSByXZ.aspx">乡镇医疗机构分类汇总统计</a></li>
            <li><a href="TradingStatisticsCompanyPSBySQ.aspx">社区医疗机构分类汇总统计</a></li>
		</ul>
	</div>
	<div id="tabcontent2">
	 <table class="querylist">
                        
                        <tr>
                            <td align="right">
                                <asp:Label ID="labProductName" runat="server" Text="通用名："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
                                <asp:CheckBox ID="cbProductNameLike" runat="server" Text="精确" ToolTip="按药品通用名精确查询" />
                            </td>
                            <td align="right">
                                <asp:Label ID="labMedicineModel" runat="server" Text="剂型："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMedicineModel" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="labPack" runat="server" Text="采购规格："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPack" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="labUnit" runat="server" Text="采购单位："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                            <td width="100px" rowspan="2">
                                <hz:HzButton ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="labHospitalName" runat="server" Text="医院名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>
                            </td>
                           
                            <td align="right">
                                <asp:Label ID="lblStartTime" runat="server" Text="开始时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeFrom" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblEndTime" runat="server" Text="结束时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeTo" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                            </td>
                            <td align="right">
                                排序字段：
                            </td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="OrderFileds" runat="server" Width="126px">
                                    <asp:ListItem Value="PurchaseAmountTotal">采购金额(元)</asp:ListItem>
                                    <asp:ListItem Value="DistributeAmountTotal">配送总额(元)</asp:ListItem>
                                    <asp:ListItem Value="DistributeRate">配送率</asp:ListItem> 
                                    <asp:ListItem Value="WareHouseAmountTotal">销售总额</asp:ListItem>
                                    <asp:ListItem Value="WareHouseRate">销售率</asp:ListItem>
                                </asp:DropDownList>
                                <asp:DropDownList ID="OrderType" runat="server" Width="126px">
                                    <asp:ListItem Value="DESC">降序</asp:ListItem>
                                    <asp:ListItem Value="ASC">升序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                      <tr>
                        <td colspan="4" align="right">销售金额从： <asp:TextBox ID="txtAmountFrom" runat="server"  onkeydown="javascript:return check_isdecimal();" ></asp:TextBox>
                         销售金额到： 
                                <asp:TextBox ID="txtAmountTo" runat="server"  onkeydown="javascript:return check_isdecimal();"></asp:TextBox>
                        </td>
                        <td>地区：</td>
                        <td colspan="3" align="left">
                                <uc4:AreaControl ID="AreaControl1" runat="server" />
                       
                        </td>
                      </tr>
                     
                        <asp:Literal ID="ltlAdvance" runat="server" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
            
        </table>
	</div>
	<asp:GridView ID="gvwInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
		AllowSorting="True" OnRowCommand="GridView1_RowCommand" DataKeyNames="CompanyID_PS,CompanyName_PS">
		<Columns>
			<asp:TemplateField HeaderText="序号">
				<ItemTemplate>
					<%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
				<HeaderStyle Width="30px" />
			</asp:TemplateField>
			<%--            <asp:BoundField DataField="CompanyID_PS" HeaderText="配送企业编号" Visible="false" />--%>
			<asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />
			<asp:BoundField DataField="ProductName" HeaderText="通用名" />
			<asp:BoundField DataField="MedicineModelName" HeaderText="剂型" />
			<asp:BoundField DataField="Outlookc" HeaderText="规格" />
			<asp:BoundField DataField="Pack" HeaderText="包装" />
			<asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购总额" DataFormatString="{0:N3}" />
			
			<asp:BoundField DataField="DistributeAmountTotal" HeaderText="配送总额" DataFormatString="{0:N3}" />
			<asp:BoundField DataField="DistributeRate" HeaderText="配送率" DataFormatString="{0:P3}"
				NullDisplayText="NA" />
			<asp:BoundField DataField="WareHouseAmountTotal" HeaderText="销售总额" DataFormatString="{0:N3}" />
			<asp:BoundField DataField="WareHouseRate" HeaderText="销售率" DataFormatString="{0:P3}"
				NullDisplayText="NA" />
		</Columns>
	</asp:GridView>
	<div class="page">
		<span style="width: 30%; float: left; text-align: left">
			<hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span><span
				style="width: 70%; float: right; text-align: right">
				<webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged" AlwaysShow="true">
				</webdiyer:AspNetPager>
			</span>
	</div>
	<div class="listip">
		<ul>
			<li>说明:<span>（1）实时查询数据量庞大，建议静态查询；</span></li>
			<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>（2）由于数据量庞大，请先选择相应条件，点击“查询”按钮。</span> </li>
		</ul>
	</div>
</asp:Content>
